<template>
  <Tabs type="card" closable @on-tab-remove="handleTabRemove">
    <TabPane label="标签一" v-if="tab0"><router-link to="/layout/tab/gsInfo">添加信息</router-link></TabPane>
    <router-view></router-view>
  </Tabs>
</template>
<script>
  export default {
    data () {
      return {
        tab0: true,
      }
    },
    methods: {
      handleTabRemove (name) {
        this['tab' + name] = false;
      }
    }
  }
</script>
